package ooday03;
//Animal家族的测试类
public class SwimTest {
    public static void main(String[] args) {
        Dog dog = new Dog("小黑", 2, "黑色");
        dog.drink();
        dog.eat();
        dog.lookHome();
        dog.swim();

        Fish fish = new Fish("小鱼", 2, "金色");
        fish.swim();
        fish.drink();
        fish.eat();

        Chick chick = new Chick("小鸡", 1, "黄色");
        chick.drink();
        chick.eat();
        chick.layEggs();
        chick.swim();
    }
}
